#!/bin/bash
sum=0 ; i=1
while [ $i -le 100 ]
do
    let sum+=$i
    let i++
done
echo "1-100的总和是：$sum"